﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WareHouse.Domain.Procurements;

namespace WareHose.Application.Procurements.Dto
{
    /// <summary>
    /// 添加/修改采购Dto
    /// </summary>
    public class AddOrUpdProcurementDto
    {
        /// <summary>
        /// 采购ID
        /// </summary>
        public long ProcurementId { get; set; }

        /// <summary>
        /// 采购单号
        /// </summary>
        public string ProcurementCode { get; set; }

        /// <summary>
        /// 供应商ID外键
        /// </summary>
        public int SupplierId { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        public string ContactName { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 收货时间
        /// </summary>
        public DateTime ReceiptTime { get; set; }

        /// <summary>
        /// 采购人
        /// </summary>
        public string MakerName { get; set; }

        /// <summary>
        /// 采购时间
        /// </summary>
        public DateTime MakerTime { get; set; }

        /// <summary>
        /// 是否入账
        /// </summary>
        public bool IsEntry { get; set; }

        /// <summary>
        /// 是否退货
        /// </summary>
        public bool IsReFund { get; set; }

        /// <summary>
        /// 采购订单状态
        /// </summary>
        public ProcurementStatus ProcurementStatus { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 采购商品Dto
        /// </summary>
        public List<ProcurementProductDto>? ProcurementProductDto { get; set; }
    }
}
